﻿<%@ Page Language="C#"AutoEventWireup="true" CodeFile="DraftTotalPlan.aspx.cs" Inherits="TotalPlan_DraftTotalPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>待发总表计划</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td class="firstbjcolor" colspan="4" style="height: 14px;">
                        <span class="currentHere">当前位置:总表计划管理-&gt;查看待发总表计划</span></td>
                </tr>
                <tr>
                    <td style="height: 1; width: 100%;">
                    </td>
                </tr>
                <tr>
                    <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                        height: 30px;">
                        部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin"
                            AutoPostBack="True" OnSelectedIndexChanged="drpDepartment_SelectedIndexChanged">
                        </asp:DropDownList>年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True"
                            SkinID="dropdownlistSkin" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
                        </asp:DropDownList>
                        &nbsp;<asp:CheckBox ID="ckbAllSelect" runat="server" Text="全选" AutoPostBack="True"
                            SkinID="checkboxSkin" OnCheckedChanged="ckbAllSelect_CheckedChanged" />
                        <asp:Button ID="btnDel" runat="server" Text="删除" SkinID="buttonSkin" OnClientClick="return confirm('确认要删除吗？');" OnClick="btnDel_Click" EnableViewState="False" />
                        <asp:Button ID="btnModify" runat="server" SkinID="buttonSkin" Text="修改" OnClick="btnModify_Click" EnableViewState="False" />
                        <asp:Button ID="btnOk" runat="server" Text="立即提交" Width="70px" SkinID="buttonSkin"
                            OnClientClick="return confirm('确认要提交吗？');" OnClick="btnOk_Click" EnableViewState="False" />
                        <asp:Button ID="btnAttachmentPath" runat="server" Text="上传文件" Width="70px" SkinID="buttonSkin" OnClick="btnAttachmentPath_Click" EnableViewState="False" /></td>
                </tr>
                <tr>
                    <td colspan="8">
                    <div style="height: 14px; width: 98.1%" id="Div1">
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="100%">
                            <tr style="background-color: #ffffff;">
                                <td class="PlanModifyTableHeader" style="width: 10%" align="center">
                                    选择</td>
                                <td class="PlanModifyTableHeader" style="width: 10%" valign="middle" align="center">
                                    计划编号</td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 40%">
                                    计划名称</td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    完成时间</td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    责任人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a></td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    责任部门</td>
                                <td align="center" class="PlanModifyTableHeader" style="width: 10%" valign="middle">
                                    附件</td>
                                
                            </tr>
                        </table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <div style="overflow-y: scroll; height: 500px; width: 100%" id="dvBody">
                            <asp:GridView ID="gdvTotalPlan" runat="server" AutoGenerateColumns="False" Width="98.1%"
                                DataKeyNames="AttachmentPath,TotalPlanId,PlanSendState,VerifyCircuitId,Source,WorkItemAdditional" SkinID="gridviewSkin" ShowHeader="False" OnRowDataBound="gdvTotalPlan_RowDataBound">
                                <Columns>
                                    <asp:TemplateField HeaderText="选择">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="10%" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="TotalPlanSortId" HeaderText="计划编号">
                                        <HeaderStyle Wrap="False" Width="10%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="10%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40%" Wrap="False" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="40%" Wrap="True" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                        HtmlEncode="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                        <HeaderStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="10%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                                        <HeaderStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="AttachmentPath" HeaderText="文件保存路径" Visible="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="附件">
                                        <ItemTemplate>
                                            <asp:Button ID="btnDownLoad" runat="server" Text="下载" SkinID="buttonSkin" OnClick="btnDownLoad_Click" />
                                            <asp:Label ID="lblAlert" runat="server" Visible="False" SkinID="labelSkin"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="10%" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="TotalPlanId" HeaderText="ID" Visible="False" />
                                    <asp:BoundField DataField="PlanSendState" Visible="False" />
                                    <asp:BoundField DataField="VerifyCircuitId" Visible="False" />
                                    <asp:BoundField DataField="Source" Visible="False" />
                                    <asp:BoundField DataField="WorkItemAdditional" />
                                </Columns>
                            </asp:GridView>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
